<template>
	<view  @tap="goKefu()" class="kf">
		<image style="width: 130upx; height: 130upx;" src="/static/icon/common/kefu.png" ></image>
		<view class="webKefu">在线客服</view>
	</view>
</template>

<script>
	
	export default {
		components:{},
		data() {
			return {
				kefu_url:'',
			}
		},
		mounted() {
			this.kefu_url = uni.getStorageSync('kefu_url')
		},
		methods: {
			// 跳转到客服
			goKefu(){
				// #ifdef APP-PLUS
				plus.runtime.openURL(this.kefu_url)
				// #endif
				
				// #ifdef H5
				window.open(this.kefu_url)
				// #endif
			},
		}
	}
</script>

<style>
	.kf{
		width: 130upx;
		height: 130upx;
		position: fixed;
		right: 20upx;
		top: 60%;
	}
	.webKefu{
		color: chocolate;
		font-weight: 600;
		font-size: 1rem;
	}
</style>